package agent;

import java.util.ArrayList;

public class AgentTable {
	
	public int agentCount;
	
	public ArrayList< Agent > allAgents;
	
	public AgentTable() {
		
		agentCount = 0;
		allAgents = new ArrayList< Agent > ();
	}
	
	// method to add new agent to agent table
	public void addAgent( Agent addingNow ) {
		
		// setting agent ID to next open space in array
		addingNow.ID = agentCount;
		
		allAgents.add( addingNow );
		agentCount++;
		
	}
}
